package com.zhongge.mapper;

import com.zhongge.entity.Region;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhongge
 * @since 2025-11-09
 */
public interface RegionMapper extends BaseMapper<Region> {
    @Select("SELECT * FROM t_region WHERE parent_id IS NULL")
    List<Region> getProvinces();
}
